%
% Author: Vasyl Mykhalchuk
%
function [ min, max ] = calculateMinMax(sf, sfMinGlobal, sfMaxGlobal);
min = sfMinGlobal;
max = sfMaxGlobal;
[nV, x] = size(sf);

for i = 1:nV
    if(sf(i) < sfMinGlobal(i))
        min(i) = sf(i);
    end%if
    if(sf(i) > sfMaxGlobal(i))
        max(i) = sf(i);
    end%if
end%for

end%dunction

